//百度坐标转高德（传入经度、纬度）
function checkInputType(e) {
	if(e.qrKey && e.qrGroup && e.qrKey.length != 0 && e.qrGroup.length != 0) {
		e.layType = "showstring";
	}
	else if (e.qrKey.length != 0) {
		e.layType = "qrcode";
	} else if (e.selectionKey.length == 0 && e.columnType == "string") {
		e.layType = "input",
			e.layInputType = "text"
	} else if (e.selectionKey.length == 0 && e.columnType == "int") {
		e.layType = "input";
		e.layInputType = "number"
	} else if (e.selectionKey.length == 0 && e.columnType == "float") {
		e.layType = "input",
			e.layInputType = "number"
	} else if (e.selectionKey.length == 0 && e.columnType == "datetime") {
		e.layType = "date"
	} else if (e.selectionKey.length != 0) {
		e.layType = "selection";
		e.pickerArray = this.getDictionaryList(e.selectionKey);
	} else if(e.columnType == "photo"){
		e.layType = "uploadImg";
	}
}

export default {
	checkInputType
};
